// pages/demo5/demo5.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [{
        "businessId": 0,
        "dateAdd": "2022-05-05 11:26:09",
        "id": 222083,
        "linkType": 0,
        "linkUrl": "https://gitee.com/joeshu/v-shop",
        "paixu": 0,
        "picUrl": "https://dcdn.it120.cc/2022/05/05/ac956ae3-151f-418e-b0e9-fadd76a9ea6d.jpeg",
        "remark": "跳转gitee v-shop",
        "shopId": 0,
        "status": 0,
        "statusStr": "显示",
        "title": "首页Banner4",
        "type": "indexBanner",
        "userId": 1605
      },
      {
        "businessId": 0,
        "dateAdd": "2022-02-02 16:04:11",
        "dateUpdate": "2022-02-02 16:19:17",
        "id": 204167,
        "linkType": 0,
        "linkUrl": "https://github.com/JoeshuTT/v-shop",
        "paixu": 0,
        "picUrl": "https://dcdn.it120.cc/2022/02/02/d0442c95-cd44-435a-888d-2539c5399334.png",
        "remark": "跳转github v-shop",
        "shopId": 0,
        "status": 0,
        "statusStr": "显示",
        "title": "首页banner3",
        "type": "indexBanner",
        "userId": 1605
      },
      {
        "businessId": 0,
        "dateAdd": "2017-12-04 10:35:09",
        "dateUpdate": "2022-02-02 16:19:07",
        "id": 2772,
        "linkType": 0,
        "linkUrl": "",
        "paixu": 2,
        "picUrl": "https://cdn.it120.cc/apifactory/2019/06/18/4c458676-85bb-4271-91a6-79ed9fc47545.jpg",
        "remark": "",
        "shopId": 0,
        "status": 0,
        "statusStr": "显示",
        "title": "首页banner2",
        "type": "indexBanner",
        "userId": 1605
      },
      {
        "businessId": 0,
        "dateAdd": "2017-12-04 10:34:35",
        "dateUpdate": "2022-02-02 16:19:13",
        "id": 2771,
        "linkType": 0,
        "linkUrl": "",
        "paixu": 2,
        "picUrl": "https://cdn.it120.cc/apifactory/2019/06/18/06b337d7-92a1-498b-8142-5c5951e8fb97.jpg",
        "remark": "",
        "shopId": 0,
        "status": 0,
        "statusStr": "显示",
        "title": "首页banner1",
        "type": "indexBanner",
        "userId": 1605
      }
    ],
    res:{
      "code": 0,
      "data": {
        "content": "<p><img src=\"//cdn.cnbj1.fds.api.mi-img.com/mi-mall/de2993d95adce6e7ec494caa13ae3815.jpg?w=1080&amp;h=952&amp;bg=4E597D\" alt=\"\" width=\"1080\" height=\"952\" /></p>\n<p><img src=\"//cdn.cnbj1.fds.api.mi-img.com/mi-mall/03666bf9038832040f07dc45f826d77b.jpg?w=1080&amp;h=1120&amp;bg=82606F\" alt=\"\" width=\"1080\" height=\"1120\" /></p>\n<p><img src=\"//cdn.cnbj1.fds.api.mi-img.com/mi-mall/835ccdadb3f7361c327dd0837baafec0.jpg?w=1080&amp;h=567&amp;bg=8291B4\" alt=\"\" width=\"750\" height=\"567\" /></p>\n<p><audio style=\"display: none;\" controls=\"controls\"></audio></p>",
      },
      "msg": "success"
    }
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.setData({
      "res.data.content":this.data.res.data.content.replace(/\<img/g,"<img style='width:100% !important;height:auto !important'")
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})